package cn.snmp.mutual.uk.stack;

class SnmpContextPoolItem {
    private static final String version_id = "@(#)$Id: SnmpContextPoolItem.java,v 3.4 2006/01/17 17:33:04 birgit Exp $ Copyright Westhawk Ltd";
    private SnmpContextBasisFace context;
    private int counter;

    SnmpContextPoolItem(final SnmpContextBasisFace con) {
        this.context = null;
        this.counter = 0;
        this.context = con;
        this.counter = 0;
    }

    SnmpContextBasisFace getContext() {
        return this.context;
    }

    int getCounter() {
        return this.counter;
    }

    void setCounter(final int i) {
        this.counter = i;
    }

    @Override
    public String toString() {
        final StringBuffer buffer = new StringBuffer("SnmpContextPoolItem[");
        buffer.append("context=").append(this.context.toString());
        buffer.append(", counter=").append(this.counter);
        buffer.append("]");
        return buffer.toString();
    }
}
